<?php
class Index extends CI_Controller {
    function __construct()
    {
        parent::__construct();
		$this->load->model('user');
    }
    function index(){
		$this->user->insert('asjkb','sadjhjashd');
		$users = $this->user->getAll();
		$this->smarty->assign('users', $users);			
        $this->smarty->display('index/index.tpl');
    }
	function get() {
		$arrResult = $this->user->get(3);
		var_dump($arrResult);exit();
	}
}